package com.imooc.mymall.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <h1>用户实体类</h1>
 * @Author: crowsjian
 * @Date: 2020/7/11 13:49
 */
@Data
@TableName("user")
public class UserDO implements Serializable {

    private static final long serialVersionUID = -9170631241998784499L;
    /*用户主信息*/
    /*用户名*/
    private String username;
    /*密码*/
    private String password;
    /*邮箱*/
    private String email;
    /*年龄*/
    private Integer age;
    /*手机号*/
    private String phone;
    /*系统主信息*/
    /*主键*/
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /*创建时间*/
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime created;
    /*修改时间*/
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modified;
    /*创建者*/
    @TableField(fill = FieldFill.INSERT)
    private String creator;
    /*最后修改这*/
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String operator;
    /*逻辑删除标记 0：正常，1：逻辑删除*/
    @TableField(fill = FieldFill.INSERT)
    private Integer status;
    /*版本号*/
    @TableField(fill = FieldFill.INSERT)
    @Version
    private Long version;
}
